﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Ceremony.Views.CermonyDetailsPreviousView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converters="clr-namespace:StockholmsStad.Windows.UI.Infrastructure.Converters;assembly=StockholmsStad.Windows.UI.Infrastructure"
    Height="300" Width="300">
    <UserControl.Resources>
        <converters:DateTimeToDateString x:Key="DateTimeToDateString" />
    </UserControl.Resources>

    <GroupBox Header="Tidigare" Margin="5,5,5,5" Padding="5,10,5,5">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <StackPanel Orientation="Horizontal" Grid.Row="0">
                <TextBlock Text="{Binding Date, Converter={StaticResource DateTimeToDateString}}" />
                <TextBlock Text=" (Tidigare...)" />
            </StackPanel>

            <ListView x:Name="listViewCermonies" Grid.Row="1" Margin="0,5,0,0" >
                <ListViewItem>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding DisplayTime}" />
                        <TextBlock Text="{Binding DisplayCouple}" />
                        <CheckBox Content="Genomförd?" IsChecked="{Binding CancelBooking}" />
                    </StackPanel>
                </ListViewItem>
            </ListView>

        </Grid>

    </GroupBox>
</UserControl>
